import {
	GETTOKEN,
	LOGIN,
	LOGINOUT,
	LOGINPUT,
	LOADINGSTATUS,
	CLOSEBG,
	PAYSTART,
	PAYID,
	MYINTE
} from './mutation-types.js'


export default {
	//获取token
	[GETTOKEN](state,value){
		state.token=value
	},
	//登录
	[LOGIN](state,value){
		state.login=true
		state.loginbg=false
		state.token=value
	},
	//重新登录
	[LOGINOUT](state){
		state.login=false;
	},
	//弹出登录窗
	[LOGINPUT](state){
		state.loginbg=true;
	},
    //加载中
	[LOADINGSTATUS] (state, payload) {
      state.isLoading = payload.isLoading
    },
    //关闭登录窗口
    [CLOSEBG](state){
    	state.loginbg = false
    },
    //点击投注
    [PAYSTART](state,value){
    	state.payStart = value
    },
    //投注id
    [PAYID](state,value){
    	state.payId = value
    },
    //个人积分
    [MYINTE](state,value){
    	state.myInte = value.myInte
    	state.myId = value.myId
    }

}
